//package com.travel.travelServer.controller1;
//
//import com.travel.travelServer.entity1.Landscapes;
//import com.travel.travelServer.entity1.vo.LandscapesVo;
//import com.travel.travelServer.service1.LandscapesService;
//import com.travel.travelServer.utils.AjaxResult;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.http.MediaType;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
//@RestController
//@RequestMapping(value = "/Landscapes", produces = MediaType.APPLICATION_JSON_VALUE)
//public class LandscapesController {
//
//    @Autowired
//    LandscapesService landscapesService;
//
//    @PostMapping(value = "/addInfo")
//    public AjaxResult addInfo(@RequestBody LandscapesVo landscapesVo) {
//        return AjaxResult.success(landscapesService.insertLandscapes(landscapesVo));
//    }
//
//    @DeleteMapping(value = "/removeInfoById/{id}")
//    public AjaxResult removeInfo(@PathVariable(value = "id") Long id) {
//        return AjaxResult.success(landscapesService.deleteById(id));
//    }
//
//    @GetMapping(value = "/removeInfoByIds/{ids}")
//    public AjaxResult removeInfos(@PathVariable(value = "ids") Long[] ids) {
//        return AjaxResult.success(landscapesService.deleteByIds(ids));
//    }
//
//    @PostMapping(value = "/editInfo")
//    public AjaxResult editInfo(@RequestBody LandscapesVo landscapesVo) {
//        return AjaxResult.success(landscapesService.updateLandscapes(landscapesVo));
//    }
//
//    @GetMapping(value = "/getInfoById/{id}")
//    public AjaxResult getInfo(@PathVariable(value = "id") Long id) {
//        return AjaxResult.success(landscapesService.selectById(id));
//    }
//
//    @GetMapping(value = "/getPageInfo")
//    public AjaxResult getInfoPage(LandscapesVo landscapesVo) {
//        return AjaxResult.success(landscapesService.getInfoPage(landscapesVo));
//    }
//
//    @GetMapping(value = "/getInfoList")
//    public AjaxResult getInfoList(LandscapesVo landscapesVo) {
//        List<Landscapes> landscapess = landscapesService.selectLandscapesList(landscapesVo);
//        return AjaxResult.success(landscapess);
//    }
//}
